#ifndef _FILEREADIMPL_H_
#define _FILEREADIMPL_H_

#include "stdafx.h"

class CFileImpl :		public	IFile,
						public	CUnknownImp
{
public:
	CFileImpl(void);
	virtual ~CFileImpl(void);

	BEGIN_STDCOM_MAP
		STDCOM_INTERFACE_ENTRY(IFile)
		STDCOM_INTERFACE_ENTRY_UNKNOWN_(IFile)
	END_STDCOM_MAP


	//IFile
	std_method(LoadFile)(const TCHAR* pszLoadFile,
		unsigned long ulwDesiredAccess,
		unsigned long ulShareMode,
		unsigned long ulCreationDisposition,
		unsigned long ulFlagsAndAttributes);
	std_method(CloseFile)();
	std_method_(int64,GetFileSize)();
	std_method(ReadBuffer)(char* szBuffer, int64 ulReadFileLen, int64* ulReadSize);
	std_method(WriteBuffer)(char* szBuffer, int64 ulWriteSize);

private:
	_fd_t		m_hFile;
};
#endif
